<?php
include_once '../config/conexao.php';
$login = $_POST['login'];
$sql_user = $conn->query("select * from usuario where login = '$login'");
$user = $sql_user->fetch(PDO::FETCH_OBJ);
if($sql_user->rowCount() <= 0){
	echo 1;
}else{
	echo 0;
}